import { defineStore } from 'pinia'
import { ref } from 'vue'

const useAttrStore = defineStore('Attr', () => {
  const c1ID = ref<number | string>('')
  const c2ID = ref<number | string>('')
  const c3ID = ref<number | string>('') //同步我们的的属性表格是否开启
  const c1Arr = ref([])
  const c2Arr = ref([])
  const c3Arr = ref([])

  async function reset() {
    c1ID.value = ''
    c2ID.value = ''
    c3ID.value = '' //同步我们的的属性表格是否开启
    c1Arr.value = []
    c2Arr.value = []
    c3Arr.value = []
  }

  return { c3ID, c1ID, c2ID, c1Arr, c2Arr, c3Arr, reset }
})
export default useAttrStore
